<?php
namespace App\Models;


use App\Models\Simple\JSONModel;


class Places extends JSONModel
{

    protected $origin = WRITEPATH . 'data/placesData.json';


    protected $keyField = 'id';


    protected $validationRules = [

        'name' => 'required|min_length[3]|max_length[255]',
        'description' => 'required',
        'image' => 'required|min_length[5]|max_length[100]|regex_match[/\.(gif|jpg|jpeg|png|webp)$/i]'
    ];
}